package lagou.user.server.lagouuser.dao;

import lagou.user.server.lagouuser.entity.UserToken;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserTokenDao {

    @Insert("insert into lagou_token(email,token) values (#{email},#{token})")
    int insertUserToken(UserToken userToken);


    @Select("select * from lagou_token where email=#{email} and token=#{token}")
    UserToken findUserToken(UserToken userToken);

}
